#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QStatusBar>
#include <QLabel>
#include <QProgressBar>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    // 默认存在一个statusBar 状态栏
    QStatusBar* status = this->statusBar();
    this->setStatusBar(status);

    QLabel* label = new QLabel("状态 : ");
    status->addWidget(label);

    QProgressBar* progressbar = new QProgressBar();
    status->addWidget(progressbar);
    progressbar->setValue(25);


}

MainWindow::~MainWindow()
{
    delete ui;
}

